import qs from 'qs'
import { axios as request  } from '@/utils/request'

export function getList({params}) {
  return request({
    url: 'api/finance/gross?' + qs.stringify(params, {indices: false, encode: false}),
    method: 'get'
  })
}

export default {
  get(id) {
    return request({
      url: `api/settlement/` + id,
      method: 'get'
    })
  }
}

export function add({data}) {
  return request({
    url: 'api/settlement',
    method: 'post',
    data
  })
}
